﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainingWorkshop.DAL
{
    public class ApplicationContext
    {
        public IFactory CreateFactory(string factoryName) {
            switch (factoryName)
            {
                case "SQL": return new SqlFactory();
                case "EF":return new EFFactory();
                default:return new SqlFactory();

            }

        }
    }
}
